<template>
		<u-navbar back-text="" :title="name" :background="background" title-color='#FFF' back-icon-color='#FFF'></u-navbar>
</template>
		
<script>
	export default {
		data() {
			return {
				background:{
					backgroundColor: '#19BE6B',
					backgroundSize: 'cover',
					backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))',			
				},
				customStyle: {
						marginTop: '20px', // 注意驼峰命名，并且值必须用引号包括，因为这是对象
						// color: 'red',
						width:'80rpx',
						textAlign:'center',
						//float:'left',
						marginLeft:'50rpx',
						paddingBotton:'80rpx'
					},
					name:this.name
				
				
			}
		},	
		onLoad(option){
			console.log(option.name);
			this.name=option.name;
		},
		methods:{
			btn(btn){
				if(btn==1){
					this.$u.route({
						url: '/pages/appointment/index',
						params: {
							id: this.orderid
						}
					})
				}else{
					uni.switchTab({
						url: '/pages/orderList/index',
						params: {
							id: this.orderid
						}
					})
					
				}
			}
		}	
	}
</script>

<style>
</style>
